package com.lijian.community.service;
import com.lijian.community.dto.PaginationDTO;
import com.lijian.community.dto.QuestionDTO;
import com.lijian.community.model.Question;

import java.util.List;

public interface QuestionService {

    PaginationDTO findAll(String search, Integer page, Integer size);

    PaginationDTO findAll(Integer userId, Integer page, Integer size);

    QuestionDTO findById(Integer id);

    void createOrUpdateQuestion(Question question);

    void incView(Integer id);

    List<QuestionDTO> findRelated(QuestionDTO questionDTO);
}
